home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: Mailbox/MIME Entity
(archive/mbox).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Newsgroup Content (archive/news)
| magic
| Supported |
100%
| dexvert
| Mailbox/MIME Entity (archive/mbox)
| magic
| Supported |
100%
| dexvert
| Internet Message Format (text/imf)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| news, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| dexmagic
| PrintFox/Pagefox WEAK
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/950 MIME Email (1.0)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
| |
100%
| xdgMime
| message/news
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 64 61 | 72 77 69 6e 2e 55 43 53 |Path: da|rwin.UCS|
|00000010| 43 2e 45 44 55 21 72 6f | 79 61 6c 74 65 79 0a 46 |C.EDU!ro|yaltey.F|
|00000020| 72 6f 6d 3a 20 48 61 6c | 20 52 6f 79 61 6c 74 65 |rom: Hal| Royalte|
|00000030| 79 20 3c 72 6f 79 61 6c | 74 65 79 40 64 61 72 77 |y <royal|tey@darw|
|00000040| 69 6e 2e 55 43 53 43 2e | 45 44 55 3e 0a 4e 65 77 |in.UCSC.|EDU>.New|
|00000050| 73 67 72 6f 75 70 73 3a | 20 63 6f 6d 70 2e 6c 61 |sgroups:| comp.la|
|00000060| 6e 67 2e 63 0a 53 75 62 | 6a 65 63 74 3a 20 52 65 |ng.c.Sub|ject: Re|
|00000070| 3a 20 44 65 74 65 72 6d | 69 6e 69 6e 67 20 74 68 |: Determ|ining th|
|00000080| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 61 6e 20 69 |e length| of an i|
|00000090| 6e 74 20 69 6e 20 73 74 | 72 69 6e 67 20 66 6f 72 |nt in st|ring for|
|000000a0| 6d 0a 44 61 74 65 3a 20 | 54 68 75 2c 20 32 31 20 |m.Date: |Thu, 21 |
|000000b0| 4d 61 72 20 31 39 39 36 | 20 31 32 3a 31 30 3a 30 |Mar 1996| 12:10:0|
|000000c0| 37 20 2d 30 38 30 30 0a | 4f 72 67 61 6e 69 7a 61 |7 -0800.|Organiza|
|000000d0| 74 69 6f 6e 3a 20 55 6e | 69 76 65 72 73 69 74 79 |tion: Un|iversity|
|000000e0| 20 6f 66 20 43 61 6c 69 | 66 6f 72 6e 69 61 2c 20 | of Cali|fornia, |
|000000f0| 53 61 6e 74 61 20 43 72 | 75 7a 0a 4d 65 73 73 61 |Santa Cr|uz.Messa|
|00000100| 67 65 2d 49 44 3a 20 3c | 50 69 6e 65 2e 53 4f 4c |ge-ID: <|Pine.SOL|
|00000110| 2e 33 2e 39 31 2e 39 36 | 30 33 32 31 31 32 30 36 |.3.91.96|03211206|
|00000120| 33 38 2e 33 35 33 32 41 | 2d 31 30 30 30 30 30 40 |38.3532A|-100000@|
|00000130| 64 61 72 77 69 6e 2e 55 | 43 53 43 2e 45 44 55 3e |darwin.U|CSC.EDU>|
|00000140| 0a 52 65 66 65 72 65 6e | 63 65 73 3a 20 3c 33 31 |.Referen|ces: <31|
|00000150| 34 36 44 30 35 38 2e 44 | 44 37 40 63 62 6d 2e 63 |46D058.D|D7@cbm.c|
|00000160| 6f 6d 3e 20 3c 34 69 37 | 75 74 68 24 71 70 68 40 |om> <4i7|uth$qph@|
|00000170| 69 6e 65 74 2d 6e 6e 74 | 70 2d 67 77 2d 31 2e 75 |inet-nnt|p-gw-1.u|
|00000180| 73 2e 6f 72 61 63 6c 65 | 2e 63 6f 6d 3e 20 3c 44 |s.oracle|.com> <D|
|00000190| 6f 45 33 38 75 2e 47 49 | 48 40 69 71 75 65 73 74 |oE38u.GI|H@iquest|
|000001a0| 2e 6e 65 74 3e 20 3c 44 | 6f 47 73 35 44 2e 46 46 |.net> <D|oGs5D.FF|
|000001b0| 42 40 69 71 75 65 73 74 | 2e 6e 65 74 3e 20 3c 34 |B@iquest|.net> <4|
|000001c0| 69 70 64 39 6b 24 65 70 | 38 40 6e 65 77 73 2e 65 |ipd9k$ep|8@news.e|
|000001d0| 72 69 6e 65 74 2e 63 6f | 6d 3e 20 3c 50 69 6e 65 |rinet.co|m> <Pine|
|000001e0| 2e 53 4f 4c 2e 33 2e 39 | 31 2e 39 36 30 33 32 30 |.SOL.3.9|1.960320|
|000001f0| 32 33 30 33 31 30 2e 31 | 34 34 37 36 43 2d 31 30 |230310.1|4476C-10|
|00000200| 30 30 30 30 40 64 61 72 | 77 69 6e 2e 55 43 53 43 |0000@dar|win.UCSC|
|00000210| 2e 45 44 55 3e 0a 4e 4e | 54 50 2d 50 6f 73 74 69 |.EDU>.NN|TP-Posti|
|00000220| 6e 67 2d 48 6f 73 74 3a | 20 64 61 72 77 69 6e 2e |ng-Host:| darwin.|
|00000230| 75 63 73 63 2e 65 64 75 | 0a 4d 69 6d 65 2d 56 65 |ucsc.edu|.Mime-Ve|
|00000240| 72 73 69 6f 6e 3a 20 31 | 2e 30 0a 43 6f 6e 74 65 |rsion: 1|.0.Conte|
|00000250| 6e 74 2d 54 79 70 65 3a | 20 54 45 58 54 2f 50 4c |nt-Type:| TEXT/PL|
|00000260| 41 49 4e 3b 20 63 68 61 | 72 73 65 74 3d 55 53 2d |AIN; cha|rset=US-|
|00000270| 41 53 43 49 49 0a 49 6e | 2d 52 65 70 6c 79 2d 54 |ASCII.In|-Reply-T|
|00000280| 6f 3a 20 3c 50 69 6e 65 | 2e 53 4f 4c 2e 33 2e 39 |o: <Pine|.SOL.3.9|
|00000290| 31 2e 39 36 30 33 32 30 | 32 33 30 33 31 30 2e 31 |1.960320|230310.1|
|000002a0| 34 34 37 36 43 2d 31 30 | 30 30 30 30 40 64 61 72 |4476C-10|0000@dar|
|000002b0| 77 69 6e 2e 55 43 53 43 | 2e 45 44 55 3e 20 0a 0a |win.UCSC|.EDU> ..|
|000002c0| 20 0a 3e 20 64 6c 6d 69 | 6c 6c 65 72 40 69 71 75 | .> dlmi|ller@iqu|
|000002d0| 65 73 74 2e 6e 65 74 20 | 28 44 6f 75 67 20 4d 69 |est.net |(Doug Mi|
|000002e0| 6c 6c 65 72 29 20 77 72 | 6f 74 65 3a 0a 3e 20 20 |ller) wr|ote:.> |
|000002f0| 0a 3e 20 3e 20 49 20 68 | 61 76 65 20 61 20 76 61 |.> > I h|ave a va|
|00000300| 72 69 61 62 6c 65 20 6f | 66 20 74 79 70 65 20 69 |riable o|f type i|
|00000310| 6e 74 2c 20 61 6e 64 20 | 49 20 77 6f 75 6c 64 20 |nt, and |I would |
|00000320| 6c 69 6b 65 20 74 6f 20 | 75 73 65 20 74 68 65 20 |like to |use the |
|00000330| 73 70 72 69 6e 74 66 28 | 29 0a 3e 20 3e 20 66 75 |sprintf(|).> > fu|
|00000340| 6e 63 74 69 6f 6e 20 74 | 6f 20 77 72 69 74 65 20 |nction t|o write |
|00000350| 74 68 69 73 20 76 61 72 | 69 61 62 6c 65 20 74 6f |this var|iable to|
|00000360| 20 61 20 73 74 72 69 6e | 67 2e 20 20 48 6f 77 65 | a strin|g. Howe|
|00000370| 76 65 72 2c 20 49 20 77 | 61 6e 74 20 74 6f 0a 3e |ver, I w|ant to.>|
|00000380| 20 3e 20 64 79 6e 61 6d | 69 63 61 6c 6c 79 20 61 | > dynam|ically a|
|00000390| 6c 6c 6f 63 61 74 65 20 | 74 68 65 20 73 70 61 63 |llocate |the spac|
|000003a0| 65 20 66 6f 72 20 74 68 | 65 20 73 74 72 69 6e 67 |e for th|e string|
|000003b0| 2c 20 61 6e 64 20 6f 6e | 6c 79 20 6d 61 6c 6c 6f |, and on|ly mallo|
|000003c0| 63 20 65 6e 6f 75 67 68 | 0a 3e 20 3e 20 73 70 61 |c enough|.> > spa|
|000003d0| 63 65 20 74 6f 20 68 6f | 6c 64 20 74 68 65 20 69 |ce to ho|ld the i|
|000003e0| 6e 74 2e 0a 3e 20 0a 3e | 20 54 72 79 20 74 61 6b |nt..> .>| Try tak|
|000003f0| 69 6e 67 20 74 68 65 20 | 6c 6f 67 20 62 61 73 65 |ing the |log base|
|00000400| 20 31 30 20 6f 66 20 74 | 68 65 20 69 6e 74 65 67 | 10 of t|he integ|
|00000410| 65 72 2c 20 61 64 64 20 | 31 2c 20 74 68 65 6e 20 |er, add |1, then |
|00000420| 64 72 6f 70 20 74 68 65 | 20 66 72 61 63 74 69 6f |drop the| fractio|
|00000430| 6e 61 6c 0a 3e 20 70 6f | 72 74 69 6f 6e 2e 20 20 |nal.> po|rtion. |
|00000440| 20 54 68 61 74 20 6f 75 | 67 68 74 20 74 6f 20 67 | That ou|ght to g|
|00000450| 69 76 65 20 79 6f 75 20 | 74 68 65 20 6e 75 6d 62 |ive you |the numb|
|00000460| 65 72 20 6f 66 20 63 68 | 61 72 61 63 74 65 72 20 |er of ch|aracter |
|00000470| 70 6f 73 69 74 69 6f 6e | 73 20 69 74 27 6c 6c 0a |position|s it'll.|
|00000480| 3e 20 6f 63 63 75 70 79 | 2e 20 20 4e 4f 54 45 2a |> occupy|. NOTE*|
|00000490| 20 55 73 65 20 62 61 73 | 65 20 31 30 20 6c 6f 67 | Use bas|e 10 log|
|000004a0| 2c 20 5f 6e 6f 74 5f 20 | 6c 6e 20 28 6e 61 74 75 |, _not_ |ln (natu|
|000004b0| 72 61 6c 20 6c 6f 67 29 | 21 20 20 20 49 66 20 6e |ral log)|! If n|
|000004c0| 65 67 61 74 69 76 65 20 | 0a 3e 20 6e 75 6d 62 65 |egative |.> numbe|
|000004d0| 72 73 20 61 72 65 20 61 | 20 70 6f 73 73 69 62 69 |rs are a| possibi|
|000004e0| 6c 69 74 79 2c 20 79 6f | 75 27 6c 6c 20 68 61 76 |lity, yo|u'll hav|
|000004f0| 65 20 74 6f 20 75 73 65 | 20 61 62 73 20 76 61 6c |e to use| abs val|
|00000500| 75 65 20 66 6f 72 20 74 | 68 65 20 6c 6f 67 20 61 |ue for t|he log a|
|00000510| 6e 64 0a 3e 20 61 64 64 | 20 61 6e 20 65 78 74 72 |nd.> add| an extr|
|00000520| 61 20 73 70 61 63 65 20 | 66 6f 72 20 74 68 65 20 |a space |for the |
|00000530| 73 69 67 6e 2c 20 6f 66 | 20 63 6f 75 72 73 65 2e |sign, of| course.|
|00000540| 20 20 20 49 20 63 61 6e | 27 74 20 69 6d 61 67 69 | I can|'t imagi|
|00000550| 6e 65 20 77 68 79 20 79 | 6f 75 27 64 0a 3e 20 77 |ne why y|ou'd.> w|
|00000560| 61 6e 74 20 74 6f 20 67 | 6f 20 74 68 72 6f 75 67 |ant to g|o throug|
|00000570| 68 20 73 75 63 68 20 73 | 68 65 6e 61 6e 6e 69 67 |h such s|henannig|
|00000580| 61 6e 73 20 68 6f 77 65 | 76 65 72 2c 20 62 79 74 |ans howe|ver, byt|
|00000590| 65 73 20 61 72 65 20 63 | 68 65 61 70 20 74 68 65 |es are c|heap the|
|000005a0| 73 65 20 64 61 79 73 2e | 0a 3e 20 0a 20 20 41 6e |se days.|.> . An|
|000005b0| 6f 74 68 65 72 20 61 6c | 74 65 72 6e 61 74 69 76 |other al|ternativ|
|000005c0| 65 20 69 73 20 74 6f 20 | 73 70 72 69 6e 74 66 20 |e is to |sprintf |
|000005d0| 74 68 65 20 73 74 72 69 | 6e 67 20 69 6e 74 6f 20 |the stri|ng into |
|000005e0| 61 20 73 74 61 74 69 63 | 20 62 75 66 66 65 72 0a |a static| buffer.|
|000005f0| 6b 6e 6f 77 6e 20 74 6f | 20 62 65 20 6c 6f 6e 67 |known to| be long|
|00000600| 20 65 6e 6f 75 67 68 20 | 74 6f 20 68 6f 6c 64 20 | enough |to hold |
|00000610| 61 6e 79 20 69 6e 74 2c | 20 73 74 72 6c 65 6e 20 |any int,| strlen |
|00000620| 74 68 65 20 72 65 73 75 | 6c 74 20 74 6f 20 66 69 |the resu|lt to fi|
|00000630| 6e 64 20 74 68 65 0a 61 | 63 74 75 61 6c 20 6c 65 |nd the.a|ctual le|
|00000640| 6e 67 74 68 2c 20 6d 61 | 6c 6c 6f 63 20 61 20 73 |ngth, ma|lloc a s|
|00000650| 75 69 74 61 62 6c 79 20 | 73 69 7a 65 64 20 62 75 |uitably |sized bu|
|00000660| 66 66 65 72 2c 20 74 68 | 65 6e 20 73 74 72 63 70 |ffer, th|en strcp|
|00000670| 79 20 74 68 65 20 72 65 | 73 75 6c 74 0a 74 6f 20 |y the re|sult.to |
|00000680| 74 68 65 20 6d 61 6c 6c | 6f 63 27 65 64 20 62 75 |the mall|oc'ed bu|
|00000690| 66 66 65 72 2e 20 0a | |ffer. . | |
+--------+-------------------------+-------------------------+--------+--------+